<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>管理员管理</title>
	{{>/WEB-INF/pages/common/meta_base.part.html}}
	{{>/WEB-INF/pages/common/refs_base.part.html}}
	{{>/WEB-INF/pages/common/refs_modal.part.html}}
<script type="text/javascript">
	var ctx="{{ctx}}";
</script>
	{{>/WEB-INF/pages/common/refs_plupload.part.html}}
<script src="{{ctx}}/static/bsl/js/parseEnum.js" type="text/javascript"></script>	
<script src="{{ctx}}/static/bsl/js/rbac/rbac-admin.js" type="text/javascript" ></script>
<style type="text/css">
  .a_nav{
    text-decoration: none;
	color: black ;
  }
</style>
</head>

<body>
	<!-- <div class="container"> -->
	{{>/WEB-INF/pages/common/layout_header.part.html}}
	<!---头部结束---->
	<!-- <div class="title1">
		首页><a href="">安全中心</a>
	</div> -->

	<!---内容开始---->
		<div class="container">
		<ul class="breadcrumb">
		  <li><a href="/bsl-web">首页</a></li>
		  <li><a href="{{ctx}}/rbac/user/user-view">安全中心</a></li>
		  <li class="active">管理员管理</li>
		</ul>
		<hr class="hr1">
		<div class="hr-10"></div>
		<div class="hr-10"></div>
		<div class="hr-10"></div>
		
		<div class="container nr_bgc">
			<div class="bg-ga container">
			<!-- 左边导航栏 -->
			<div class="col-sm-2 left_tab">
				<ul>
					<li class="leff_tab_choose">安全中心</li>
					<li><a class="a_nav" href="{{ctx}}/rbac/user/user-view">用户管理</a></li>
					<li><a class="a_nav" href="{{ctx}}/rbac/privilege/privilege-view">角色管理</a></li>
					<li><a class="a_nav" href="{{ctx}}/rbac/operation/operation-view">操作管理</a></li>
					<li class="menu-choose"><a class="a_nav" href="{{ctx}}/mam-rbac/admins/list">管理员管理</a></li>
				</ul>

			</div>

			<!-- 右边的表格 -->
			<div class=" pull-left col-sm-10 right_tab">
				<div class="bg_green2-w">
					<div class="intro">管理员管理</div>
				</div>
				<div class="hr-10"></div>

				<div style="margin:5px 20px 10px">
					{{>/WEB-INF/pages/common/simplequery.part.html}}
			    </div>

				<p class="navbar-form btn-w">
 					<button class="btn btn-sm btn-primary tls" type="button" data-toggle="modal"
						onclick="showAddAdminModal()">新增</button>
					<button type="botton" class="btn tls btn-common btn-sm " value="删除"
						onclick="deleteAdmins()">删除</button>
				</p>

				<div class="hr-10"></div>
				<div class="mar-st-lr10" >
					<table id="adminList" border="0" cellpadding="0" cellspacing="0"
						class="table table-bordered table-center">
						<thead>
							<tr class="title title10"
								style="background-color: rgb(248, 248, 248);">
								<th class="bd_txt2 bd_le" width="3%">
									<input id="selectAllCheckbox" class="choice-w" type="checkbox" onchange="selectAll('selectAllCheckbox','adminListBody')">
								</th>
								<th class="bd_txt2 bd_le">用户名</th>
								<th class="bd_txt2 bd_le">姓名</th>
								<!-- <th class="bd_txt2 bd_le">邮箱</th> -->
								<th class="bd_txt2 bd_le">性别</th>
								<th class="bd_txt2 bd_le">账号状态</th>
								<th class="bd_txt2 bd_le" width="25%">操作</th>
							</tr>
						</thead>
						<tbody id="adminListBody"> 
							{{#list}}
							<tr style="background-color: rgb(255, 255, 255);">
								<td class="bd_txt3">
									<input class="choice-w" type="checkbox" value="{{id}}">
								</td>
								<td class="bd_txt3">{{username}}</td>
								<td class="bd_txt3">{{name}}</td>
								<td class="bd_txt3 enum-type" data-type="sex"  data-value="{{sex}}">{{sex}}</td>
								<td class="bd_txt3">{{statusView}}</td>
								<td class="bd_txt3" width="25%">
									<button type="botton" class="btn btn-sm btn-primary"
										onclick="showPasswordModal('{{id}}','{{username}}')">修改密码</button>
									<button type="botton" class="btn btn-sm btn-common"
										onclick="editAdmin('{{id}}')">编辑</button>
									<button type="botton" class="btn btn-sm btn-common"
										onclick="setAdminStatus('{{id}}','{{status}}')">{{opView}}</button>
								</td>
							</tr>
							{{/list}}
						</tbody>
					</table>
					{{#page}} {{>/WEB-INF/pages/common/pagination.part.html}} {{/page}}
				</div>


			</div>
		
		</div>
		</div>
	</div>
	<!-- </div> -->
	{{>/WEB-INF/pages/common/layout_footer.part.html}}
	{{>/WEB-INF/pages/rbac/admin-add.html}}
</body>
</html>